package base.view.widget

import android.content.Context
import android.util.AttributeSet
import android.widget.GridView

/**
 * Created by Administrator on 2018/4/27.
 */
class NRollGridView : GridView {

    constructor(context: Context, attrs: AttributeSet) :super(context,attrs)
    constructor(context: Context) : super(context)

    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        val expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE shr 2, MeasureSpec.AT_MOST)
        super.onMeasure(widthMeasureSpec, expandSpec)
    }
}